package service.impl;

import dao.impl.UserDaoImpl;
import model.User;
import service.UserService;

public class UserServicesImpl implements UserService {
    @Override
    public User userlogin(String name, String password) {
        UserDaoImpl userDao = new UserDaoImpl();
        User userLogin = userDao.findByUserNameAndPassWord(name,password);
        return userLogin;
    }
}
